package com.tomcov.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Image;
import com.tomcov.client.Ressource.TomCovRes;

public class I18nViewImpl extends Composite implements I18nView  {

	@SuppressWarnings("unused")
	private Presenter presenter;
	private static final MyUiBinder binder = GWT.create(MyUiBinder.class);
	interface MyUiBinder extends UiBinder<FlowPanel, I18nViewImpl> {
	}
	private final TomCovRes constants = GWT.create(TomCovRes.class);
	@UiField Anchor fr,nl,en;
	
	public I18nViewImpl(){
		initWidget(binder.createAndBindUi(this));
		
		Image imfr = new Image(constants.drap_fr());
		Image imnl= new Image(constants.drap_nl());
		Image imen= new Image(constants.drap_en());
		imfr.setSize(constants.css().anchorsize(),constants.css().anchorsize());
		imnl.setSize(constants.css().anchorsize(),constants.css().anchorsize());
		imen.setSize(constants.css().anchorsize(),constants.css().anchorsize());
		fr.getElement().appendChild(imfr.getElement());
		nl.getElement().appendChild(imnl.getElement());
		en.getElement().appendChild(imen.getElement());
	}
	
	@Override
	public void setPresenter(Presenter presenter) {
		this.presenter=presenter;
		
	}
	
	public Anchor getfr(){
		return fr;
	}
	
	public Anchor getnl(){
		return nl;
	}
	
	public Anchor geten(){
		return en;
	}
	

}
